package com.training.oops;

import java.util.Date;

public class Vechicle {

	int noOfWheels;
	String licenceNumber;
	Date yearOfManufactured;
	int speed;

	/**
	 * @return the noOfWheels
	 */
	public int getNoOfWheels() {
		return noOfWheels;
	}

	/**
	 * @param noOfWheels
	 *            the noOfWheels to set
	 */
	public void setNoOfWheels(int noOfWheels) {
		this.noOfWheels = noOfWheels;
	}

	/**
	 * @return the licenceNumber
	 */
	public String getLicenceNumber() {
		return licenceNumber;
	}

	/**
	 * @param licenceNumber
	 *            the licenceNumber to set
	 */
	public void setLicenceNumber(String licenceNumber) {
		this.licenceNumber = licenceNumber;
	}

	/**
	 * @return the yearOfManufactured
	 */
	public Date getYearOfManufactured() {
		return yearOfManufactured;
	}

	/**
	 * @param yearOfManufactured
	 *            the yearOfManufactured to set
	 */
	public void setYearOfManufactured(Date yearOfManufactured) {
		this.yearOfManufactured = yearOfManufactured;
	}

	/**
	 * @return the speed
	 */
	public int getSpeed() {
		return speed;
	}

	/**
	 * @param speed
	 *            the speed to set
	 */
	public void setSpeed(int speed) {
		this.speed = speed;
	}
	
	public void start()
	{
		this.setSpeed(10);
	}
	
	public void start(boolean isSprortsCar)
	{
		if(isSprortsCar)
		
		this.setSpeed(60);
 		
	}

	public void start(int speed)
	{
	  this.setSpeed(speed);
	}
	
}
